package com.oceansoft.mobile.vote.domain;

import java.util.Date;

/**
 * Created by zhangxl on 2017/12/28.
 */
public class Tickets {
    private String infoid;//候选id
    private Date createtime;//投票时间
    private String userid;//投票人id
    private String ly;//1 警信通 2 苏州公安微警务 3苏州警方
    private String tickets;//票数
    private String persons;//人数

    public String getInfoid() {
        return infoid;
    }

    public void setInfoid(String infoid) {
        this.infoid = infoid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getLy() {
        return ly;
    }

    public void setLy(String ly) {
        this.ly = ly;
    }

    public String getTickets() {
        return tickets;
    }

    public void setTickets(String tickets) {
        this.tickets = tickets;
    }

    public String getPersons() {
        return persons;
    }

    public void setPersons(String persons) {
        this.persons = persons;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Tickets tickets = (Tickets) o;

        return infoid != null ? infoid.equals(tickets.infoid) : tickets.infoid == null;

    }

    @Override
    public int hashCode() {
        return infoid != null ? infoid.hashCode() : 0;
    }
}
